package com.kgc.novel.config;



import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;


@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "auth.jwt",ignoreUnknownFields = true)
public class AuthJwtProperties {

    // 是否启动用户鉴权
    private Boolean enabled;

    // 签名秘钥
    private String secret;

    //过期时间

    private Long expiration;

    //请求头
    private String header;

    //白名单
    private List<String> whiteList;
}
